export default class Response {
  static success(data = null, message = '操作成功') {
    return {
      code: 200,
      message,
      data,
      success: true
    };
  }

  static error(message = '操作失败', code = 500) {
    return {
      code,
      message,
      data: null,
      success: false
    };
  }
} 